<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
<!-- 打印出所有的"水仙花数"："水仙花数"是指一个三位数，其各位数字立方和等于该数本身。例如：153 -->
    <script>
        var i=100;
        while(i<1000){
            var ge = i%10;
            var shi = Math.floor(i/10)%10;
            var bai = Math.floor(i/100);
            if(ge*ge*ge + shi*shi*shi + bai*bai*bai == i){
                document.write(i+'<br>');
            }
            i++;
        }
    </script>
</body>
</html>